<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index - thymeleaf</title>
    <link rel="stylesheet" th:href="@{style.css}">
</head>
<body>
    <h1>hello thymeleaf</h1>
    <div>name: <span th:text="${person.name}">default name</span></div>
    <div>gender:
        <span th:if="${person.gender eq 0}">男</span>
        <span th:if="${person.gender eq 1}">女</span>
    </div>
    <div>height: <span th:text="${#numbers.formatDecimal(person.height, 1, 2)}">default height</span></div>
    <div>hobbys:
        <span th:each="hobby,hobbyStat:${person.hobbys}">
            <span th:text="${hobby}">default hobby</span>
            <span th:if="${hobbyStat.index lt hobbyStat.size - 1}">,</span>
        </span>
    </div>
    <!--<img th:src="${}">-->
    <!--<input th:value="${}">-->
</body>
</html>